package com.enoram.training1;

public class MailManager{
	private final static int ROUND = 2; 
	private static int count;
	
	private Email[] emails = new Email[]{
			new Email("lcportal2@gmail.com", "lcportal"),
			new Email("lcportal2@gmail.com", "lcportal"),
			//new Email("user3", "pass3"),
	};

	public void send(String to, String subject, String body ){
		
		emails[count % ROUND].send(to, subject, body);
				
		count++;
		
	}
	
	
}
